package cn.momoshenchi.product.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/4/30 - 18:25
 */
@Configuration
@MapperScan("cn.momoshenchi.product.dao")
public class MybatisConfig
{
    // 旧版的分页拦截器
    @Bean
    public PaginationInterceptor paginationInterceptor()
    {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
